l = [1, 2, 3, 'hello', ['test', 10], 'dunyo', True]
print(len(l))
print(l[5])
print(l[5:7])
l[1] = 'Og`abek'
print(l)
l[2:4] = ['qurbaqa', 'toshbaqa']
print(l)
l.append('yangi')
print(l)
l.extend([4, 6])
print(l)
l2 = ['salom', 18]
l += l2
l = l + l2
print(l)
l.insert(1, 'test')
print(l)
l.remove(1)
print(l)

print("c boshlandi\n")
c = ['khjghhij', 4, 4, 5, 55, [14, 15], 'dunyo', True, False]

print(c)
c1 = c.pop(4)
print(c1, c.count('dunyo'))

v = ['pomidor', 'bodring', 'yil', 'afandi']
print(v)
v.sort()
print(v)

b = [55, 65, 23, 1, 5, 4, 3, 0]
print(b)
b.sort()
print('sort', b)
b.reverse()
nn = b.copy()
nvi = b.clear()
print('reverse', b, nn, nvi, sep = '\n')

